package com.banyuan.single;

/**
 * @author 陶继发
 * @version 1.8
 */
//懒汉式
    @SuppressWarnings("all")
public class Emp {
    private static  Emp emp;
    private  Emp(){}
    public static synchronized Emp getInstance(){
        if (emp == null){
            emp = new Emp();
        }
        return emp;
    }
}
